
/**操作按钮*/
function dicButtonFormatter(value, row, rowIndex) {
        return "<div class='btn-group'>" +
                    "<a class='btn btn-default btn-sm' href='javascript:addChild_obj(" + row.dicId + ");'>" +
                    "<i class='glyphicon glyphicon-plus icon-white'>添加</i> " +
                    "</a>" +
                    "<a class='btn btn-default btn-sm' href='javascript:edit_obj(" + row.dicId + ");'>" +
                    "<i class='glyphicon glyphicon-pencil icon-white'>修改</i> " +
                    "</a>" +
                "</div>";


}
/**子菜单操作按钮*/
function dictionaryChildButtonFormatter(value, row, rowIndex) {
    return "<div class='btn-group'>" +
                "<a class='btn btn-default btn-sm' href='javascript:editChild_obj(" + row.dicId + ");'>" +
                    "<i class='glyphicon glyphicon-pencil icon-white'>修改</i> " +
                "</a>" +
         "</div>";
}
/**状态样式*/
function stateFormatter(value) {
    if (value == 1) {
        return ' <span class="label label-sm label-success">正常</span>';
    } else {
        return '<span class="label label-sm label-danger">关闭</span>';
    }
}

/**级别别样式*/
function levelFormatter(value) {
    if (value == 1) {
        return ' <span class="label label-sm label-success"> 父菜单 </span>';
    } else {
        return '<span class="label label-sm label-danger"> 子菜单 </span>';
    }
}

